#!/bin/bash
arr[0]="https://ghproxy.com/https://raw.githubusercontent.com/tbbatbb/Proxy/master/dist/clash.config.yaml"
# YML_URL=https://ghproxy.com/https://raw.githubusercontent.com/a2470982985/getNode/main/clash.yaml
arr[1]="https://ghproxy.com/https://raw.githubusercontent.com/ts-sf/fly/main/clash"
# YML_URL=https://ghproxy.com/https://raw.githubusercontent.com/free18/v2ray/main/Clash.yaml
arr[2]="https://ghproxy.com/https://raw.githubusercontent.com/snakem982/proxypool/main/clash97435.yaml"
# arr[2]="https://ghproxy.com/https://raw.githubusercontent.com/anaer/Sub/main/clash.yaml"
# YML_URL=https://ghproxy.com/https://raw.githubusercontent.com/peasoft/NoMoreWalls/master/list.yml
mv config.yaml config.yaml.bak
curl -o config.yaml ${arr[$1]}
sudo systemctl restart clash
